//
//  NSString+extend.m
//  mmbang
//
//  Created by 倪元政 on 2016/10/24.
//  Copyright © 2016年 iyaya. All rights reserved.
//

#import "NSString+extend.h"


@implementation NSString (extend)

- (NSString *)urlEncodedString {
    NSString *encodedString = [self stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
    if(!encodedString)
        encodedString = @"";
    
    return encodedString;
}

@end
